﻿using KayakMes.Common.Result;
using KayakMes.RBAC.Application.Input;
using KayakMes.RBAC.Application.OUT;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KayakMes.RBAC.Application.Supper
{
    /// <summary>
    /// 供应商服务
    /// </summary>
    public interface ISupperServer
    {
        /// <summary>
        /// 添加供应商
        /// </summary>
        /// <param name="input"></param> 
        /// <returns></returns>
        ApiResult<int> AddSupper(AddsupperInput input);
        /// <summary>
        /// 获取供应商列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        ApiPaging<SupperOut> GetSupperList(int pageIndex, int pageSize,string? SupperCoide,string? SupperName);
        /// <summary>
        /// 获取供应商信息
        /// </summary>
        /// <returns></returns>

        ApiResult<List<SupperXiaOUT>> GetSupper();
        /// <summary>
        /// 获取供应商信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<SupperOut> GetSupperById(long id);
        /// <summary>
        /// 修改供应商信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> UpdateSupper(UpdateSupperInput input);

    }
}
